<?php

namespace App\Http\Controllers\Admin;

use App\Http\Controllers\Controller;
use App\Services\Admin\Report;
use Illuminate\Http\Request;

class ReportController extends Controller
{
    //充值
    public function index(Report $report)
    {

        $time = $report->time();

        $result = [
            'recharge_statistics'=>$report->recharge_statistics(),
            'appointment_statistics'=>$report->appointment_statistics(),
            'teacher_statistics'=>$report->teacher_statistics(),
            'start_time'=>$time['start_time'],
            'end_time'=>$time['end_time'],
        ];

        return view('admin.report.index', $result);
    }
}
